
$screen: 375;

/* px转换为vw */
@function px2vw($n){
  @return #{($n/$screen)*100}vw
}


.m-picker{
  font-size: px2vw(16);
  color: #666;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top:0;
  left: 0;
  z-index: 1000;
  .m-picker-item-box{
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    overflow: hidden;
  }
  .m-picker-mark{
    position: absolute;
    z-index: 99;
    background: #000;
    opacity: 0.6;
    width: 100%;
    height: 100%;
  }
  .m-picker-header{
    position: relative;
    display: flex;
    height: px2vw(40);
    line-height: px2vw(40);
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    padding: 0 px2vw(20);
    justify-content: space-between;
    span:last-of-type{
      color: #62a2dd;
    }
  }
  .m-picker-box{
    position: absolute;
    z-index: 100;
    bottom: 0;
    background: #fff;
    width: 100%;
    height:px2vw(355);
  }
}
.m-picker-item{
  position: relative;
  width: 100%;
  height: px2vw(315);
  overflow: hidden;
  .m-scroller-item-box{
    position: relative;
    width: 100%;
  }
  .m-scroller-item{
    text-align: center;
    font-size: px2vw(18);
    height:px2vw(35);
    line-height: px2vw(35);
  }
  .m-scroller-mask {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    margin: 0 auto;
    width: 100%;
    z-index: 3;
    background-image:
      linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.6)),
      linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0.6));
    background-position: top, bottom;
    background-size: 100% px2vw(140);
    background-repeat: no-repeat;
  }
  .m-scroller-indicator {
    width: 100%;
    height:px2vw(30);
    position: absolute;
    left: 0;
    top: px2vw(140);
    z-index: 2;
    box-sizing: border-box;
    background-image:
      linear-gradient(to bottom, #d0d0d0, #d0d0d0, transparent, transparent),
      linear-gradient(to top, #d0d0d0, #d0d0d0, transparent, transparent);
    background-position: top, bottom;
    background-size: 100% 2px;
    background-repeat: no-repeat;
  }
}

.fade-enter-active, .fade-leave-active {
  transition: opacity .3s;
  -webkit-transition: opacity .3s;
  opacity: 1
}
.fade-enter, .fade-leave-to /* .fade-leave-active 在低于版本 2.1.8 中 */ {
  opacity: 0
}
